package com.banker.web.query;

import org.apache.commons.lang3.StringUtils;
import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.Tool;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam;
import java.util.Date;
/**
 *bank查询
 */
public class ToNotifyQuery extends PageParam {
    @Query(name = "手机号", display = true)
    private String phone;
    @Query(name = "意向机构代码", display = true)
    private String orgCode;
    @Query(name = "创建时间", display = true,type=Query.TYPE_DATETIME_BETWEEN)
    private String createTime;
    private Date createTimeStart;
    private Date createTimeEnd;
    public String getPhone(){
        return  phone;
    }
    public void setPhone(String phone ){
        this.phone = phone;
    }
    public String getOrgCode(){
        return  orgCode;
    }
    public void setOrgCode(String orgCode ){
        this.orgCode = orgCode;
    }
    public String getCreateTime(){
        return  createTime;
    }
    public void setCreateTime(String createTime ){
        this.createTime = createTime;
        if(StringUtils.isEmpty(createTime)) {
            return ;
        }
        Date[] ds = Tool.parseDataTimeRange(createTime);
        this.createTimeStart=ds[0];
        this.createTimeEnd =ds[1];
    }
    public Date getCreateTimeStart(){
        return  createTimeStart;
    }
    public void setCreateTimeStart(Date createTimeStart){
        this.createTimeStart = createTimeStart;
    }
    public Date getCreateTimeEnd(){
        return  createTimeEnd;
    }
    public void setCreateTimeEnd(Date createTimeEnd){
        this.createTimeEnd = createTimeEnd;
    }
 
}
